import request from '@/utils/request'

export default{
  // 保存课时
  save(video) {
    return request({
      url: '/admin/edu/video/save',
      method: 'post',
      data: video
    })
  },
  // 根据id查找课时
  getById(id) {
    return request({
      url: `/admin/edu/video/get/${id}`,
      method: 'get'
    })
  },
  // 根据id修改课时
  updateById(video) {
    return request({
      url: '/admin/edu/video/update',
      method: 'put',
      data: video
    })
  },
  // 根据id删除课时
  removeById(id) {
    return request({
      url: `/admin/edu/video/remove/${id}`,
      method: 'delete'
    })
  }
}
